using System;
using System.Runtime.InteropServices;
namespace BMC.ARSystem
{
	[ARStructTypeInfo(Name = "ARStatusHistoryStruct", NumberOfMembers = 2u), ClassInterface, Guid("4f1fb6df-d15e-4ab0-8e4b-3fd0285956e1"), ProgId("BMC.ARSystem.StatusHistoryItem")]
	public class StatusHistoryItem
	{
		[ARStructMemTypeInfo(Name = "user", Offset = 0u)]
		private string _user;
		[ARStructMemTypeInfo(Name = "timeVal", Offset = 1u)]
		private DateTime _timeVal;
		public string User
		{
			get
			{
				return this._user;
			}
			set
			{
				this._user = value;
			}
		}
		public DateTime Time
		{
			get
			{
				return this._timeVal;
			}
			set
			{
				this._timeVal = value;
			}
		}
		public StatusHistoryItem()
		{
		}
		public StatusHistoryItem(string user, DateTime time)
		{
			this.User = user;
			this.Time = time;
		}
		public override string ToString()
		{
			return string.Format("{0} ({1})", this.Time.ToLocalTime(), this.User);
		}
	}
}
